<script>
	import common from "common/common.js"
	export default {
		onLaunch: function() {
			// #ifdef H5
			uni.getSystemInfo({
				success(e){
				/* 窗口宽度大于420px且不在PC页面且不在移动设备时跳转至 PC.html 页面 */
					if(e.windowWidth>420 && !window.top.isPC && !/iOS|Android/i.test(e.system)){
						window.location.pathname = '/static/pc.html';
					}
				}
			})
			// #endif
		},
		onShow: function() {
			this.userID.id=uni.getStorageSync('userID')
		},
		onHide: function() {
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
